package com.zeekr.orm.utils;

import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author 吴文杰
 * @version 1.0
 * @since 2024/11/2 13:55
 */
@NoArgsConstructor
public class ThreadPoolInfo {

  @Autowired
  private ThreadPoolExecutor getThreadPoor;

  public int getThreadPoolSize() {
    return getThreadPoor.getPoolSize();
  }
}
